package com.cjjs.jsf.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 拼团控制类
 * @author gxy
 *	2018年6月2日
 *	jsf
 *
 */
@Table(name="wx_spelling")
@Entity
public class Spelling implements Serializable{
	
	private static final long serialVersionUID = -3313372859653328432L;

	@Id
	@Column(name="wx_spenid")
	private String spelId;
	
	@Column(name="wx_relation_openid")
	private String relationOpenId;
	
	@Column(name="wx_maxspelnum")
	private Integer maxSpelNum;
	
	@Column(name="wx_currentSpelnum")
	private Integer currentSpelNum;
	
	@Column(name="wx_create_date")
	private Date createDate;
	
	@Column(name="wx_update_date")
	private Date updateDate;
	
	/*
	 * 该团价格
	 */
	@Column(name="pt_price")
	private Double price;
	
	/*
	 * vip优惠
	 */
	@Column(name="vip_rate")
	private Double vipRate;

	public String getRelationOpenId() {
		return relationOpenId;
	}

	public void setRelationOpenId(String relationOpenId) {
		this.relationOpenId = relationOpenId;
	}

	public String getSpelId() {
		return spelId;
	}

	public void setSpelId(String spelId) {
		this.spelId = spelId;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getMaxSpelNum() {
		return maxSpelNum;
	}

	public void setMaxSpelNum(Integer maxSpelNum) {
		this.maxSpelNum = maxSpelNum;
	}

	public Integer getCurrentSpelNum() {
		return currentSpelNum;
	}

	public void setCurrentSpelNum(Integer currentSpelNum) {
		this.currentSpelNum = currentSpelNum;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getVipRate() {
		return vipRate;
	}

	public void setVipRate(Double vipRate) {
		this.vipRate = vipRate;
	}

}
